package com.asdf.db.results.airport;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.asdf.db.results.IDBResult;
import com.asdf.entities.Airport;

/** Result of a DB operation.
 * @author so4i2014
 *
 */
public class AirportResult extends IDBResult
{
	List< Airport> resultSet = new ArrayList< Airport>( );
	
	/** Add airport to the result.
	 * @param airport - an airport we wanna add.
	 */
	public void addToResultSet( Airport airport)
	{
		resultSet.add( airport);
	}
	
	/** Returns the list of ariports set by DB operation.
	 * @return the list.
	 */
	public List< Airport> getResultSet( )
	{
		return Collections.unmodifiableList( resultSet);
	}
}
